package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

/**
 * 长投温度对象 money_fund_temperature
 *
 * @author ruoyi
 * @date 2021-03-14
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MoneyFundTemperature extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 基金id
     */
    @Excel(name = "基金id")
    private Long fundId;

    /**
     * pb
     */
    @Excel(name = "pb")
    private Double pe;

    /**
     * PE温度
     */
    @Excel(name = "PE温度")
    private Double peTemperature;

    /**
     * pb
     */
    @Excel(name = "pb")
    private Double pb;

    /**
     * 温度
     */
    @Excel(name = "温度")
    private Double temperature;

    /**
     * 时间（yyyy-MM-dd）
     */
    @Excel(name = "时间", readConverterExp = "yyyy-MM-dd")
    private String time;

    /**
     * PB温度
     */
    @Excel(name = "PB温度")
    private Double pbTemperature;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFundId(Long fundId) {
        this.fundId = fundId;
    }

    public Long getFundId() {
        return fundId;
    }

    public Double getPe() {
        return pe;
    }

    public void setPe(Double pe) {
        this.pe = pe;
    }

    public Double getPb() {
        return pb;
    }

    public void setPb(Double pb) {
        this.pb = pb;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTime() {
        return time;
    }

    public Double getPeTemperature() {
        return peTemperature;
    }

    public void setPeTemperature(Double peTemperature) {
        this.peTemperature = peTemperature;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public Double getPbTemperature() {
        return pbTemperature;
    }

    public void setPbTemperature(Double pbTemperature) {
        this.pbTemperature = pbTemperature;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fundId", getFundId())
                .append("pe", getPe())
                .append("peTemperature", getPeTemperature())
                .append("pb", getPb())
                .append("temperature", getTemperature())
                .append("time", getTime())
                .append("pbTemperature", getPbTemperature())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MoneyFundTemperature)) return false;

        MoneyFundTemperature that = (MoneyFundTemperature) o;

        return time != null ? time.equals(that.time) : that.time == null;

    }

    @Override
    public int hashCode() {
        return time != null ? time.hashCode() : 0;
    }
}
